def general_control_panel_get_initial_popup( rows_display, texbox_display ):
    popup_layout_output = []

    # Append a new dictionary to the list
    popup_layout_output.append({})

    # Populate the dictionary
    popup_layout_output[0]["type"] = "rows"
    popup_layout_output[0]["display"] = rows_display
    popup_layout_output[0]["id"] = rows_display.replace(" ","_") + "_" + str(random.randint(0, 10000))
    popup_layout_output[0]["expand"] = "on"

    # Initialize the "rows" key as a list and append a dictionary
    popup_layout_output[0]["rows"] = []

    popup_layout_output[0]["rows"].append({})
    popup_layout_output[0]["rows"][0]["permission"] = "read_write"
    popup_layout_output[0]["rows"][0]["id"] = rows_display.replace(" ","_") + "_" + str(random.randint(0, 10000))
    popup_layout_output[0]["rows"][0]["type"] = "row"
    popup_layout_output[0]["rows"][0]["fields"] = []
    popup_layout_output[0]["rows"][0]["fields"].append({"type": "textbox", "display": "timestamp" })
    popup_layout_output[0]["rows"][0]["fields"].append({"type": "void"})
    popup_layout_output[0]["rows"][0]["fields"].append({"type": "archive", "selection": "date", "items": []})
    popup_layout_output[0]["rows"][0]["fields"][2]["items"].append({"display": "date", "data": datetime.today().strftime('%Y-%m-%d') })
    popup_layout_output[0]["rows"][0]["fields"][2]["items"].append({"display": "time", "data": datetime.today().strftime('%H:%M:%S') })

    popup_layout_output[0]["rows"].append({})
    popup_layout_output[0]["rows"][1]["permission"] = "read_write"
    popup_layout_output[0]["rows"][1]["id"] = rows_display.replace(" ","_") + "_" + str(random.randint(0, 10000))
    popup_layout_output[0]["rows"][1]["type"] = "row"
    popup_layout_output[0]["rows"][1]["fields"] = []
    popup_layout_output[0]["rows"][1]["fields"].append({"type": "textbox", "display": texbox_display })
    popup_layout_output[0]["rows"][1]["fields"].append({"type": "void"})

    return popup_layout_output
